package com.glzn.springboot03.service.impl;

import com.glzn.springboot03.entity.Mqtt;
import com.glzn.springboot03.mapper.MqttMapper;
import com.glzn.springboot03.service.MqttService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lenovo
 */
@Service
public class MqttServiceImpl implements MqttService {
	@Autowired
	MqttMapper mqttMapper;

	@Override
	public Mqtt findById(Integer id) {
		return mqttMapper.findById(id);
	}

	@Override
	public List<Mqtt> findAll() {
		return mqttMapper.findAll();
	}
}
